<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2> 账号列表({$_total})</h2>
	</div>
	<div class="cf">
		<div class="fl">
			<a class="btn" href="{:U('addAcount')}">新 增</a>
			<button class="btn ajax-post confirm" url="{:U('deleteAcount')}" target-form="ids">删 除</button>
		</div>

	</div>
	<!-- 数据列表 -->
	<div class="data-table table-striped">
		<table class="">
			<thead>
			<tr>
				<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
				<th class="">编号</th>
				<th class="">账号名称</th>
				<th class="">APPID</th>
				<th class="">状态</th>
				<th class="">操作</th>
			</tr>
			</thead>
			<tbody>
			<notempty name="_list">
				<volist name="_list" id="vo">
					<tr>
						<td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
						<td>{$vo.id} </td>
						<td>{$vo.name}</td>
						<td>{$vo.app_id}</td>
						<td>
							<if condition="$vo['status'] eq 1">
							    启用
                             <else />
								关闭
							</if>
						</td>
						<td>

							<if condition="$vo['status'] eq 1">
							    <a href="{:U('changeStatus',array('id'=>$vo['id'],'status'=>0))}" class="confirm ajax-get">停用</a>
                             <else />
								 <a href="{:U('changeStatus',array('id'=>$vo['id'],'status'=>1))}" class="confirm ajax-get">启用</a>
							</if>
							<a href="{:U('editAcount',array('ids'=>$vo['id']))}">编辑</a>
							<a href="{:U('deleteAcount',array('ids'=>$vo['id']))}" class="confirm ajax-get">删除</a>
						</td>
					</tr>
				</volist>
				<else/>
				<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
			</notempty>
			</tbody>
		</table>
	</div>
	<div class="page">
		{$_page}
	</div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
	<script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('Acount')}");
	</script>
</block>
